package com.gxuwz.stats.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;

import java.util.Date;

@Builder
@TableName("rsp_academic_work")
public class AcademicWork {
    @TableId(type = IdType.AUTO)
    private int academicWorkId;
    private int userId;
//    @ExcelProperty(value = "作品名称")
    private String workName;
//    @ExcelProperty(value = "出版社名称")
    private String publisher;
//    @ExcelProperty(value = "出版时间")
    private Date publishDate;
//    @ExcelProperty(value = "ISBN号")
    private String isbn;
//    @ExcelProperty(value = "作品类别")
    private String academicWorkCategory;
//    @ExcelProperty(value = "分值")
    private int academicWorkScore;

//    @ExcelProperty(value = "篇数")
    private int articleNum;

//    @ExcelProperty(value = "姓名")
    @TableField(exist = false) // 不映射到数据库
    private String username;


    public int getAcademicWorkId() {
        return academicWorkId;
    }

    public void setAcademicWorkId(int academicWorkId) {
        this.academicWorkId = academicWorkId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getWorkName() {
        return workName;
    }

    public void setWorkName(String workName) {
        this.workName = workName;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getAcademicWorkCategory() {
        return academicWorkCategory;
    }

    public void setAcademicWorkCategory(String academicWorkCategory) {
        this.academicWorkCategory = academicWorkCategory;
    }

    public int getAcademicWorkScore() {
        return academicWorkScore;
    }

    public void setAcademicWorkScore(int academicWorkScore) {
        this.academicWorkScore = academicWorkScore;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getArticleNum() {
        return articleNum;
    }

    public void setArticleNum(int articleNum) {
        this.articleNum = articleNum;
    }

    @Override
    public String toString() {
        return "AcademicWork{" +
                "academicWorkId=" + academicWorkId +
                ", userId=" + userId +
                ", workName='" + workName + '\'' +
                ", publisher='" + publisher + '\'' +
                ", publishDate=" + publishDate +
                ", isbn='" + isbn + '\'' +
                ", academicWorkCategory='" + academicWorkCategory + '\'' +
                ", academicWorkScore=" + academicWorkScore +
                ", articleNum=" + articleNum +
                '}';
    }
}
